import React from 'react'

export default class Emoticon extends React.Component {
  render() {
    if (this.props.url && this.props.url.startsWith('http')) {
      return (
        <div className="media-box-chat__desc-thumb">
          <img src={ this.props.url } />
        </div>
      )
    } else {
      return <p>{ this.props.url }</p>
    }
  }
}